namespace Bmz.Studio.EntityFramework.Migrations
{
    using Bmz.Studio.Core;
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Migrations;
    using System.Linq;

    internal sealed class Configuration : DbMigrationsConfiguration<Bmz.Studio.EntityFramework.StudioObjectContext>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = false;
            ContextKey = "Bmz.Studio.EntityFramework.StudioObjectContext";
        }

        protected override void Seed(Bmz.Studio.EntityFramework.StudioObjectContext context)
        {
            //  This method will be called after migrating to the latest version.

            //  You can use the DbSet<T>.AddOrUpdate() helper extension method 
            //  to avoid creating duplicate seed data. E.g.

            //context.Set<Person>().AddOrUpdate(
            //  p => p.Id,
            //  new Person { Name = "Andrew Peters" },
            //  new Person { Name = "Brice Lambson" },
            //  new Person { Name = "Rowan Miller" }
            //);
            
        }
    }
}
